#ifndef ZABBIX_WRITER_H
#define ZABBIX_WRITER_H

#ifdef WITH_ZABBIX

#include <QtCore/QThread>
#include <QtNetwork/QHostAddress>
#include "global.h"

namespace smstranslator {

class KernelPrivate;

class ZabbixWriter : public QThread {
  Q_OBJECT
public:
  ZabbixWriter(KernelPrivate *parent, QHostAddress addr, quint16 port);

  ~ZabbixWriter();

public slots:

  void write(const QByteArray &msg);

private:

  KernelPrivate *parent;
  QHostAddress addr;
  quint16 port;
};

} // namespace smstranslator

#endif

#endif // ZABBIX_WRITER_H
